package com.ysmygx.service;

import com.ysmygx.entity.RequestBody;

public interface EnvelopeService {
    String enc(String requestBody);

    /**
     *
     * @param encData 加密的交易数据
     * @param dataClass 返回的数据类型
     * @return
     * @throws InstantiationException
     * @throws IllegalAccessException
     */
    Object dec(String encData, Class dataClass) throws InstantiationException, IllegalAccessException;
}
